package Environment;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import java.io.IOException;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;

/**
 * @author ThanhTri
 */
public class Main extends MIDlet {
    Game m_Game;
    Display m_Display;
    public  Main()
    {
        try {
            m_Game = new Game ();
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }
    public void startApp() {
      m_Game.m_Play.m_Main = this;
      m_Game.Start();
      m_Display = Display.getDisplay(this);
      m_Display.setCurrent(m_Game);
            
    }

    public void pauseApp() {
        
    }
   
    public void destroyApp(boolean unconditional) {
    }
}
